Skip to main content

View Post [edit]

Poster: Madhavananda Date: Apr 23, 2006 4:12am
Forum: opensource_movies Subject: Re: How are GIFs generated from MPEG-2 source? Where can I learn about software (custom?) used to run moving pictures archive?

If you're on Windows and want to easily derive thumbnails at desired intervals, install AviSynth(.Org). If you need to interlace footage, also download LeakKernelDeint and place it in the AviSynth plugin directory.

Then, create a blank text file and rename it to, for example, image-generator.avs. Open in a text editor such as Notepad and paste in the following:


### Which file? Without extension! Also, configure frame settings. ###
ident = "name_of_your_clip"
EverySoManyFrames = 250
StartFrame = 30


### Grab file selectevery (every how many frames, beginning frame) ###
directshowsource(ident + ".mpeg").selectevery(EverySoManyFrames, StartFrame).assumefps(1000)


### If you need to deinterlace, uncomment below. ###
#LeakKernelDeint(0, threshold=15)

converttorgb32()

### If you want to resize, uncomment below. ###
#LanczosResize(640, 480)


### Then, the image generator (create a folder called "images"). ###
ImageWriter ("images/" + ident + "_", type="jpg")

Then, just double click the file or drag it to your media player of choice, and watch the images generated. You can change the image type to PNG or BMP, too, if you want lossless.

This post was modified by Madhavananda on 2006-04-23 11:12:19

Reply [edit]

Poster: LastChance Date: Apr 23, 2006 4:21am
Forum: opensource_movies Subject: Re: How are GIFs generated from MPEG-2 source? Where can I learn about software (custom?) used to run moving pictures archive?

Thanks, I'll try that. -Gord

Reply [edit]

Poster: Madhavananda Date: Apr 23, 2006 4:24am
Forum: opensource_movies Subject: Re: How are GIFs generated from MPEG-2 source? Where can I learn about software (custom?) used to run moving pictures archive?

I just crunched 12 hours of footage with that, I have 20 more to do. With snaps every 10 seconds, generating 30 minutes of DV footage took about 30 seconds, and XviD compressed took a bit over a minute due to the lag caused by the decompression.